/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.swt.mto.thithu.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link QuizCategory}.
 * </p>
 *
 * @author    tuan.nguyen
 * @see       QuizCategory
 * @generated
 */
public class QuizCategoryWrapper implements QuizCategory,
	ModelWrapper<QuizCategory> {
	public QuizCategoryWrapper(QuizCategory quizCategory) {
		_quizCategory = quizCategory;
	}

	public Class<?> getModelClass() {
		return QuizCategory.class;
	}

	public String getModelClassName() {
		return QuizCategory.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("quizCategoryId", getQuizCategoryId());
		attributes.put("parentId", getParentId());
		attributes.put("createUserId", getCreateUserId());
		attributes.put("modifyUserId", getModifyUserId());
		attributes.put("title", getTitle());
		attributes.put("description", getDescription());
		attributes.put("createDate", getCreateDate());
		attributes.put("modifydate", getModifydate());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long quizCategoryId = (Long)attributes.get("quizCategoryId");

		if (quizCategoryId != null) {
			setQuizCategoryId(quizCategoryId);
		}

		Long parentId = (Long)attributes.get("parentId");

		if (parentId != null) {
			setParentId(parentId);
		}

		Long createUserId = (Long)attributes.get("createUserId");

		if (createUserId != null) {
			setCreateUserId(createUserId);
		}

		Long modifyUserId = (Long)attributes.get("modifyUserId");

		if (modifyUserId != null) {
			setModifyUserId(modifyUserId);
		}

		String title = (String)attributes.get("title");

		if (title != null) {
			setTitle(title);
		}

		String description = (String)attributes.get("description");

		if (description != null) {
			setDescription(description);
		}

		Date createDate = (Date)attributes.get("createDate");

		if (createDate != null) {
			setCreateDate(createDate);
		}

		Date modifydate = (Date)attributes.get("modifydate");

		if (modifydate != null) {
			setModifydate(modifydate);
		}
	}

	/**
	* Returns the primary key of this quiz category.
	*
	* @return the primary key of this quiz category
	*/
	public long getPrimaryKey() {
		return _quizCategory.getPrimaryKey();
	}

	/**
	* Sets the primary key of this quiz category.
	*
	* @param primaryKey the primary key of this quiz category
	*/
	public void setPrimaryKey(long primaryKey) {
		_quizCategory.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the quiz category ID of this quiz category.
	*
	* @return the quiz category ID of this quiz category
	*/
	public long getQuizCategoryId() {
		return _quizCategory.getQuizCategoryId();
	}

	/**
	* Sets the quiz category ID of this quiz category.
	*
	* @param quizCategoryId the quiz category ID of this quiz category
	*/
	public void setQuizCategoryId(long quizCategoryId) {
		_quizCategory.setQuizCategoryId(quizCategoryId);
	}

	/**
	* Returns the parent ID of this quiz category.
	*
	* @return the parent ID of this quiz category
	*/
	public long getParentId() {
		return _quizCategory.getParentId();
	}

	/**
	* Sets the parent ID of this quiz category.
	*
	* @param parentId the parent ID of this quiz category
	*/
	public void setParentId(long parentId) {
		_quizCategory.setParentId(parentId);
	}

	/**
	* Returns the create user ID of this quiz category.
	*
	* @return the create user ID of this quiz category
	*/
	public long getCreateUserId() {
		return _quizCategory.getCreateUserId();
	}

	/**
	* Sets the create user ID of this quiz category.
	*
	* @param createUserId the create user ID of this quiz category
	*/
	public void setCreateUserId(long createUserId) {
		_quizCategory.setCreateUserId(createUserId);
	}

	/**
	* Returns the create user uuid of this quiz category.
	*
	* @return the create user uuid of this quiz category
	* @throws SystemException if a system exception occurred
	*/
	public java.lang.String getCreateUserUuid()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _quizCategory.getCreateUserUuid();
	}

	/**
	* Sets the create user uuid of this quiz category.
	*
	* @param createUserUuid the create user uuid of this quiz category
	*/
	public void setCreateUserUuid(java.lang.String createUserUuid) {
		_quizCategory.setCreateUserUuid(createUserUuid);
	}

	/**
	* Returns the modify user ID of this quiz category.
	*
	* @return the modify user ID of this quiz category
	*/
	public long getModifyUserId() {
		return _quizCategory.getModifyUserId();
	}

	/**
	* Sets the modify user ID of this quiz category.
	*
	* @param modifyUserId the modify user ID of this quiz category
	*/
	public void setModifyUserId(long modifyUserId) {
		_quizCategory.setModifyUserId(modifyUserId);
	}

	/**
	* Returns the modify user uuid of this quiz category.
	*
	* @return the modify user uuid of this quiz category
	* @throws SystemException if a system exception occurred
	*/
	public java.lang.String getModifyUserUuid()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _quizCategory.getModifyUserUuid();
	}

	/**
	* Sets the modify user uuid of this quiz category.
	*
	* @param modifyUserUuid the modify user uuid of this quiz category
	*/
	public void setModifyUserUuid(java.lang.String modifyUserUuid) {
		_quizCategory.setModifyUserUuid(modifyUserUuid);
	}

	/**
	* Returns the title of this quiz category.
	*
	* @return the title of this quiz category
	*/
	public java.lang.String getTitle() {
		return _quizCategory.getTitle();
	}

	/**
	* Sets the title of this quiz category.
	*
	* @param title the title of this quiz category
	*/
	public void setTitle(java.lang.String title) {
		_quizCategory.setTitle(title);
	}

	/**
	* Returns the description of this quiz category.
	*
	* @return the description of this quiz category
	*/
	public java.lang.String getDescription() {
		return _quizCategory.getDescription();
	}

	/**
	* Sets the description of this quiz category.
	*
	* @param description the description of this quiz category
	*/
	public void setDescription(java.lang.String description) {
		_quizCategory.setDescription(description);
	}

	/**
	* Returns the create date of this quiz category.
	*
	* @return the create date of this quiz category
	*/
	public java.util.Date getCreateDate() {
		return _quizCategory.getCreateDate();
	}

	/**
	* Sets the create date of this quiz category.
	*
	* @param createDate the create date of this quiz category
	*/
	public void setCreateDate(java.util.Date createDate) {
		_quizCategory.setCreateDate(createDate);
	}

	/**
	* Returns the modifydate of this quiz category.
	*
	* @return the modifydate of this quiz category
	*/
	public java.util.Date getModifydate() {
		return _quizCategory.getModifydate();
	}

	/**
	* Sets the modifydate of this quiz category.
	*
	* @param modifydate the modifydate of this quiz category
	*/
	public void setModifydate(java.util.Date modifydate) {
		_quizCategory.setModifydate(modifydate);
	}

	public boolean isNew() {
		return _quizCategory.isNew();
	}

	public void setNew(boolean n) {
		_quizCategory.setNew(n);
	}

	public boolean isCachedModel() {
		return _quizCategory.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_quizCategory.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _quizCategory.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _quizCategory.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_quizCategory.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _quizCategory.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_quizCategory.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new QuizCategoryWrapper((QuizCategory)_quizCategory.clone());
	}

	public int compareTo(com.swt.mto.thithu.model.QuizCategory quizCategory) {
		return _quizCategory.compareTo(quizCategory);
	}

	@Override
	public int hashCode() {
		return _quizCategory.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.swt.mto.thithu.model.QuizCategory> toCacheModel() {
		return _quizCategory.toCacheModel();
	}

	public com.swt.mto.thithu.model.QuizCategory toEscapedModel() {
		return new QuizCategoryWrapper(_quizCategory.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _quizCategory.toString();
	}

	public java.lang.String toXmlString() {
		return _quizCategory.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_quizCategory.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public QuizCategory getWrappedQuizCategory() {
		return _quizCategory;
	}

	public QuizCategory getWrappedModel() {
		return _quizCategory;
	}

	public void resetOriginalValues() {
		_quizCategory.resetOriginalValues();
	}

	private QuizCategory _quizCategory;
}